package edu.zac.service;

import edu.zac.dao.EmpDao;
import edu.zac.pojo.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @Title
 * @Author Peihan.Zhang
 * @Email zhangpeihan@sjgtw.com
 * @Date 2021/10/18 20:07
 * @Versions 1.0
 */
@Service
public class EmpServiceImp  implements  EmpService{
    @Autowired
    @Qualifier(value = "empDaoImp")
    private EmpDao empDao ;


    @Override
    public void addEmp(Emp emp) throws IOException {
        try {
            empDao.addEmp(emp);
        } catch (IOException e) {
            e.printStackTrace();
            System.out.println("service层出问题了");
            throw e;
        }
    }
}
